package jrain.fw.script.expression;

 
public class FloatingPointLiteral extends Literal {
	// -------------------------------------

	/**
	 * Constructor
	 */
	public FloatingPointLiteral(String pToken) {
		super(getValueFromToken(pToken));
	}

	// -------------------------------------

	/**
	 * Parses the given token into the literal value
	 */
	static Object getValueFromToken(String pToken) {
		return new Double(pToken);
	}

	// -------------------------------------
	// Expression methods
	// -------------------------------------

	/**
	 * Returns the expression in the expression language syntax
	 */
	public String getExpressionString() {
		return getValue().toString();
	}

	// -------------------------------------
}
